package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.PosTypeBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface PosTypeService extends BaseService<PosTypeBean> {

	PosTypeBean getPosTypeBeanById(String id) throws Exception;
	
	void removePosTypeBeanById(String id) throws Exception;
	
	void removePosTypeBeanByIds(String ids) throws Exception;
	
	PosTypeBean savePosTypeBean(PosTypeBean crm) throws Exception;
	
	PosTypeBean updatePosTypeBean(PosTypeBean crm) throws Exception;
	
	Page<PosTypeBean>  findPosTypeBeanByCond(PosTypeBean bean,
			Page<PosTypeBean> page, String orderByName, boolean asc)
			throws Exception;
	void savePosTypeBeanExt(String sql) throws Exception;

	String findPosTypeBeanExtCreate(String tableName) throws Exception;

	String findPosTypeBeanExtEdit(String tableName, String id)
			throws Exception;

	String findPosTypeBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasPosTypeBeanExtData(String tableName, String id)
			throws Exception;
}